const jsdom = require("jsdom");
// const akamai_2 = require("./akamai_2");
const {JSDOM} = jsdom;
const {ResourceLoader, WindowManager, randomNum} = require("../../../tools/window");
const {is_ueq_strict,IndexOf1,Substr1,is_in,bitwise_not,mul,is_lg,div,left_shift,bitwise_or,is_ueq_nostrict,Opposite,is_lte,is_lt,is_instanceof,logical_neg,is_eq_strict,add,Length1,VoidVar,mod,is_eq_nostrict,right_shift,bitwise_and,sub,is_lge,CharCodeAt1} = require("../../common/base_op");

class CustomResourceLoader extends ResourceLoader {
}

function windowConfig(window, ua, referer, traceId) {
}

const referer = 'https://book.cathaypacific.com/';
const ua = `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_${randomNum(0, 7)}}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/${randomNum(77, 98)}.0.${randomNum(3000, 4000)}.${randomNum(50, 150)} Safari/537.36`;
const headers = {
    'User-Agent': ua,
    'Accept': '*/*',
    'Referer': referer,
    'Accept-Language': 'zh-CN,zh;q=0.9',
}
// let htmlText = await http.get(referer, headers, 2, 4000, false, false, false);
let htmlText = '';
const jsdomOptions = {
    // runScripts: "dangerously",
};
global.domLoad = false;
const windowManager = new WindowManager(ua, referer, htmlText, CustomResourceLoader, '0', 'ast', windowConfig, jsdomOptions);
global.window = windowManager.window;
global.domLoad = true;

const dom = new JSDOM(`<!DOCTYPE html><p>Hello world</p><script type="text/javascript" src="/Opence-Heere-Interd-not-sherson-And-mewd-be-Whol" async="" defer=""></script>`);
window = dom.window;
document = window.document;

// --------------- 分界线 ---------------
var g_win = window;
var stack = [];

g_win.window.bmak = {
    "startTs": getDateNow()
};

function getJsHeapInfo() {
    stack.push(728);
    try {
        var dB4 = stack.slice();
        var cB4 = function OB4() {
            stack.push(94);
            var nB4 = '-1';
            try {
                var YB4 = stack.slice();
                var UB4;
                UB4 = g_win['navigator'] && g_win['navigator']['connection'] && g_win['navigator']['connection']['rtt'] ? g_win['navigator']['connection']['rtt']['toString']() : nB4;
                stack.pop();
                return UB4;
            } catch (lB4) {
                stack = YB4.slice();
                var CB4;
                CB4 = nB4;
                stack.pop();
                return CB4;
            }
            stack.pop();
        }();
        var IB4 = '-1,-1,-1';
        if (g_win['window']['performance'] && g_win['window']['performance']['memory']) {
            var xB4 = g_win['window']['performance']['memory'];
            IB4 = ''['concat'](xB4['jsHeapSizeLimit'], ',')['concat'](xB4['totalJSHeapSize'], ',')['concat'](xB4['usedJSHeapSize']);
        }
        var FB4;
        FB4 = ''['concat'](IB4, ',')['concat'](cB4);
        stack.pop();
        return FB4;
    } catch (fB4) {
        stack = dB4.slice();
        var KB4;
        KB4 = decrypt_obj.CH.apply(null, [
            93,
            11,
            91,
            293,
            98
        ]);
        stack.pop();
        return KB4;
    }
    stack.pop();
}

function getSubArg42_1() {
    stack.push(81);
    try {
        var rT4 = stack.slice();
        var pT4 = getUA();
        if (is_lge(is_lg(pT4['indexOf']('Trident/7.0'), Opposite(1)) ? 11 : is_lg(pT4['indexOf']('Trident/6.0'), Opposite(1)) ? 10 : is_lg(pT4['indexOf']('Trident/5.0'), Opposite(1)) ? zv[25] : 0, 9) || isMobileBrowser()) {
            var ZT4;
            ZT4 = '';
            stack.pop();
            return ZT4;
        }
        var WT4 = g_win['window']['document']['createElement']('iframe');
        WT4['style']['display'] = 'none';
        g_win['window']['document']['head']['appendChild'](WT4);
        var tT4 = WT4['contentWindow'];
        var wT4 = function VT4(TT4) {
            stack.push(782);
            var BT4;
            var NT4;
            var dT4 = 'Maximum call stack size exceeded';
            try {
                var cT4 = stack.slice();
                BT4 = TT4['srcdoc'];
            } catch (OT4) {
                stack = cT4.slice();
                OT4['message']['includes'](dT4) && (BT4 = decrypt_obj.BH(56, 379, logical_neg(logical_neg({})), 1, 36, 13));
            }
            var nT4 = g_win['Math']['floor'](mul(1000, g_win['Math']['random']()))['toString']();
            TT4['srcdoc'] = nT4;
            NT4 = is_ueq_strict(TT4['srcdoc'], nT4);
            var YT4;
            YT4 = ''['concat'](BT4, ',')['concat'](bitwise_and(1, NT4)['toString']());
            stack.pop();
            return YT4;
        }(WT4);
        var UT4 = function lT4(CT4) {
            stack.push(946);
            if (CT4['chrome'] && is_lg(g_win['Object']['keys'](CT4['chrome'])['length'], zv[8])) {
                var IT4 = [];
                for (var xT4 in CT4['chrome'])
                    g_win['Object']['prototype']['hasOwnProperty'].call(CT4['chrome'], xT4) && IT4['push'](xT4);
                var FT4;
                FT4 = zR4(mA(IT4['join'](',')));
                stack.pop();
                return FT4;
            }
            var fT4;
            fT4 = decrypt_obj.ck.apply(null, [
                595,
                logical_neg([]),
                95
            ]);
            stack.pop();
            return fT4;
        }(tT4);
        var KT4 = function PT4(DT4) {
            stack.push(355);
            var ST4 = '-1';
            var QT4 = '-1';
            var qT4 = new g_win['RegExp'](/function (get )?contentWindow(\(\)) \{(\n {3})? \[native code\][\n ]\}/);
            try {
                var LT4 = stack.slice();
                if (g_win['window']['Object'] && g_win['window']['Object']['getOwnPropertyDescriptor']) {
                    var zT4 = g_win['Object']['getOwnPropertyDescriptor'](g_win['HTMLIFrameElement']['prototype'], 'contentWindow');
                    zT4 && (ST4 = qT4['test'](zT4['get']['toString']()));
                }
                QT4 = is_ueq_strict(g_win['window'], DT4);
            } catch (gT4) {
                stack = LT4.slice();
                ST4 = decrypt_obj.ck(4, 86, 95);
                QT4 = decrypt_obj.ck(4, 18, 95);
            }
            var sT4;
            sT4 = left_shift(add(ST4, QT4), 1)['toString']();
            stack.pop();
            return sT4;
        }(tT4);
        var GT4 = function jT4() {
            stack.push(640);
            var vT4 = g_win['window']['document']['createElement']('iframe');
            vT4['src'] = 'https://';
            vT4['style']['display'] = 'none';
            g_win['window']['document']['head']['appendChild'](vT4);
            var mT4 = vT4['contentWindow'];
            var AT4 = isNavigatorWebdriver(mT4);
            var EB4 = AV4(mT4);
            var HB4 = AV4(g_win['window']);
            var RB4 = '';
            vT4['remove']();
            RB4 += ''['concat'](EB4['hardwareConcurrency'], ',')['concat'](EB4['pluginsLength'], ',')['concat'](EB4['chromeObj']['toString'](), ',')['concat'](EB4['pluginsTest'], ',')['concat'](EB4['deviceMemory']);
            RB4 += ','['concat'](HB4['hardwareConcurrency'], ',')['concat'](HB4['pluginsLength'], ',')['concat'](HB4['chromeObj']['toString'](), ',')['concat'](HB4['pluginsTest'], ',')['concat'](HB4['deviceMemory'], ',')['concat'](AT4);
            RB4 += ','['concat'](EB4['webGLInfo']['webGLVendor'], ';wve,')['concat'](EB4['webGLInfo']['webGLRenderer'], ';wre');
            var MB4;
            MB4 = add(RB4, ','['concat'](HB4['webGLInfo']['webGLVendor'], ';wve,')['concat'](HB4['webGLInfo']['webGLRenderer']));
            stack.pop();
            return MB4;
        }();
        var JB4;
        WT4['remove']();
        JB4 = [
            wT4,
            UT4,
            KT4,
            ',',
            GT4
        ]['join'](',');
        stack.pop();
        return JB4;
    } catch (bB4) {
        stack = rT4.slice();
        var kB4;
        kB4 = ',,,';
        stack.pop();
        return kB4;
    }
    stack.pop();
}

function getDateNow() {
    stack.push(563);
    var j04;
    j04 = g_win['Date']['now'] && 'number' == typeof g_win['Date']['now']() ? g_win['Date']['now']() : +new g_win['Date']();
    stack.pop();
    return j04;
}
function getUA() {
    stack.push(773);
    var v04;
    v04 = g_win['window']['navigator']['userAgent']['replace'](/\\|"/g, '');
    stack.pop();
    return v04;
}
function isMobileBrowser() {
    // stack.push(196);
    // var A04 = function Er4() {
    //     stack.push(256);
    //     var Hr4 = getUA();
    //     var Rr4;
    //     Rr4 = /(iPhone|iPad).*AppleWebKit(?!.*(Version|CriOS))/i['test'](Hr4);
    //     stack.pop();
    //     return Rr4;
    // }();
    // var Mr4 = g_win['Object']['prototype']['hasOwnProperty'].call(g_win['Navigator']['prototype'], 'mediaDevices');
    // var Jr4 = g_win['Object']['prototype']['hasOwnProperty'].call(g_win['Navigator']['prototype'], 'serviceWorker');
    // var br4 = !!g_win['window']['browser'];
    // var kr4 = 'function' == typeof g_win['ServiceWorker'];
    // var Xr4 = 'function' == typeof g_win['ServiceWorkerContainer'];
    // var hr4 = 'function' == typeof g_win['frames']['ServiceWorkerRegistration'];
    // var rr4 = g_win['window']['location'] && 'http:' === g_win['window']['location']['protocol'];
    // var pr4;
    // pr4 = A04 && (!Mr4 || !Jr4 || !kr4 || !br4 || !Xr4 || !hr4) && !rr4;
    // stack.pop();
    return false;
}

var getIsSeleniumArr = function () {
    stack.push(76);
    var WTr;
    WTr = [
        g_win['window']['$cdc_asdjflasutopfhvcZLmcfl_'] || g_win['document']['$cdc_asdjflasutopfhvcZLmcfl_'] ? '1' : '0',
        is_ueq_nostrict(null, g_win['window']['document']['documentElement']['getAttribute']('webdriver')) ? '1' : '0',
        is_ueq_strict(VoidVar(0), g_win['navigator']['webdriver']) && g_win['navigator']['webdriver'] ? '1' : '0',
        is_ueq_strict(VoidVar(0), g_win['window']['webdriver']) ? '1' : '0',
        is_ueq_strict(VoidVar(0), g_win['window']['XPathResult']) || is_ueq_strict(VoidVar(0), g_win['document']['XPathResult']) ? '1' : '0',
        is_ueq_nostrict(null, g_win['window']['document']['documentElement']['getAttribute']('driver')) ? '1' : '0',
        is_ueq_nostrict(null, g_win['window']['document']['documentElement']['getAttribute']('selenium')) ? '1' : '0'
    ]['join'](',');
    stack.pop();
    return WTr;
};

function getHtmlInputElementInfo() {
    stack.push(573);
    for (var sc4 = '', Gc4 = Opposite(1), jc4 = g_win['document']['getElementsByTagName']('input'), vc4 = 0; is_lt(vc4, jc4['length']); vc4++) {
        var mc4 = jc4[vc4];
        var Ac4 = FI(4, [
            cR4,
            0,
            mc4['getAttribute']('name')
        ]);
        var EO4 = FI(4, [
            cR4,
            0,
            mc4['getAttribute']('id')
        ]);
        var HO4 = is_eq_nostrict(null, mc4['getAttribute']('required')) ? 0 : zv[4];
        var RO4 = mc4['getAttribute']('type');
        var MO4 = is_eq_nostrict(null, RO4) ? Opposite(1) : mr4(RO4);
        var JO4 = mc4['getAttribute']('autocomplete');
        Gc4 = is_eq_nostrict(null, JO4) ? Opposite(1) : is_eq_strict('off', JO4 = JO4['toLowerCase']()) ? 0 : is_eq_strict(decrypt_obj.wp(logical_neg({}), 56, 220, 70), JO4) ? zv[4] : 2;
        var bO4 = mc4['defaultValue'];
        var kO4 = mc4['value'];
        var XO4 = 0;
        var hO4 = 0;
        bO4 && is_ueq_strict(0, bO4['length']) && (hO4 = zv[4]);
        logical_neg(kO4) || is_eq_strict(0, kO4['length']) || hO4 && is_eq_strict(kO4, bO4) || (XO4 = 1);
        is_ueq_strict(2, MO4) && (sc4 = ''['concat'](add(sc4, MO4), ',')['concat'](Gc4, ',')['concat'](XO4, ',')['concat'](HO4, ',')['concat'](EO4, ',')['concat'](Ac4, ',')['concat'](hO4, ';'));
    }
    var rO4;
    rO4 = sc4;
    stack.pop();
    return rO4;
}

function isNavigatorWebdriver(OEr) {
    stack.push(247);
    try {
        var kEr = stack.slice();
        var EEr;
        EEr = is_eq_strict(VoidVar(0), OEr['navigator']['webdriver']) ? '-1' : is_eq_strict(logical_neg(1), OEr['navigator']['webdriver']) ? '0' : '1';
        stack.pop();
        return EEr;
    } catch (tEr) {
        stack = kEr.slice();
        var REr;
        REr = decrypt_obj.Ob.apply(null, [
            90,
            387,
            7,
            59
        ]);
        stack.pop();
        return REr;
    }
    stack.pop();
}

function getNoheadBrowserInfo() {
    stack.push(51);
    try {
        var TEr = stack.slice();
        var FEr = add(g_win['Boolean'](g_win['window']['__nightmare']), left_shift(g_win['Boolean'](g_win['window']['cdc_adoQpoasnfa76pfcZLmcfl_Array']), 1));
        var zEr;
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['cdc_adoQpoasnfa76pfcZLmcfl_Promise']), 2), left_shift(g_win['Boolean'](g_win['window']['cdc_adoQpoasnfa76pfcZLmcfl_Symbol']), 3));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['OSMJIF']), QY[10]), left_shift(g_win['Boolean'](g_win['window']['_Selenium_IDE_Recorder']), 5));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__$webdriverAsyncExecutor']), 6), left_shift(g_win['Boolean'](g_win['window']['__driver_evaluate']), 7));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__driver_unwrapped']), 8), left_shift(g_win['Boolean'](g_win['window']['__fxdriver_evaluate']), 9));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__fxdriver_unwrapped']), 10), left_shift(g_win['Boolean'](g_win['window']['__lastWatirAlert']), QY[11]));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__lastWatirConfirm']), 12), left_shift(g_win['Boolean'](g_win['window']['__lastWatirPrompt']), 13));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__phantomas']), QY[12]), left_shift(g_win['Boolean'](g_win['window']['__selenium_evaluate']), QY[13]));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__selenium_unwrapped']), 16), left_shift(g_win['Boolean'](g_win['window']['__webdriverFuncgeb']), 17));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__webdriver__chr']), QY[14]), left_shift(g_win['Boolean'](g_win['window']['__webdriver_evaluate']), 19));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__webdriver_script_fn']), 20), left_shift(g_win['Boolean'](g_win['window']['__webdriver_script_func']), 21));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['__webdriver_script_function']), 22), left_shift(g_win['Boolean'](g_win['window']['__webdriver_unwrapped']), 23));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['awesomium']), 24), left_shift(g_win['Boolean'](g_win['window']['callSelenium']), 25));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['calledPhantom']), 26), left_shift(g_win['Boolean'](g_win['window']['calledSelenium']), 27));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['domAutomationController']), 28), left_shift(g_win['Boolean'](g_win['window']['watinExpressionError']), 29));
        FEr += add(left_shift(g_win['Boolean'](g_win['window']['watinExpressionResult']), QY[15]), left_shift(g_win['Boolean'](g_win['window']['spynner_additional_js_loaded']), 31));
        zEr = FEr += add(add(left_shift(g_win['Boolean'](g_win['document']['$chrome_asyncScriptInfo']), QY[16]), left_shift(g_win['Boolean'](g_win['window']['fmget_targets']), 33)), left_shift(g_win['Boolean'](g_win['window']['geb']), 34));
        stack.pop();
        return zEr;
    } catch (jEr) {
        stack = TEr.slice();
        var wEr;
        wEr = 0;
        stack.pop();
        return wEr;
    }
    stack.pop();
}

function SignDataToInt(GOr) {
    stack.push(441);
    if (null == GOr) {
        var rOr;
        rOr = -1;
        stack.pop();
        return rOr;
    }
    try {
        var pOr = stack.slice();
        for (var SOr = 0, BOr = 0; BOr < GOr['length']; BOr++) {
            var VOr = GOr['charCodeAt'](BOr);
            VOr < 128 && (SOr += VOr);
        }
        var XOr;
        XOr = SOr;
        stack.pop();
        return XOr;
    } catch (HOr) {
        stack = pOr.slice();
        var bOr;
        bOr = -2;
        stack.pop();
        return bOr;
    }
    stack.pop();
}


var hX4 = 0;
var nH4 = 0;
// 每个js文件不一样
var zv = [4095, 1276, 300000, 2, 1, 3, 8, 127, 0, 100000, 10000, 4, 15, 28, 29, 33, 34, 8888888, 7777777, 10, 1000, 150, 47, 112, 123, 9, 4294967296, 999999, 6, 32, 65535, 65793, 4294967295, 8388607, 4282663, 57, 4064256, 7, 3600000, 2048, 3540, 25, 3000, 100];




var getUAEncStr = function () {
    stack.push(410);
    var Ik4 = getUA();
    var xk4 = ''['concat'](FI(4, [
        cR4,
        0,
        Ik4
    ]));
    var Fk4 = div(g_win['window'].bmak['startTs'], zv[3]);
    var fk4 = Opposite(1);
    var Kk4 = Opposite(1);
    var Pk4 = Opposite(1);
    var Dk4 = Opposite(1);
    var Sk4 = Opposite(1);
    var Qk4 = Opposite(1);
    var qk4 = Opposite(1);
    var Lk4 = Opposite(1);
    try {
        var zk4 = stack.slice();
        // Lk4 = g_win['Number'](is_in('ontouchstart', g_win['window']) || is_lg(g_win['navigator']['maxTouchPoints'], 0) || is_lg(g_win['navigator']['msMaxTouchPoints'], 0));
        Lk4 = 0;
    } catch (gk4) {
        stack = zk4.slice();
        Lk4 = Opposite(zv[4]);
    }
    try {
        var sk4 = stack.slice();
        // fk4 = g_win['window']['screen'] ? g_win['window']['screen']['availWidth'] : Opposite(1);
        fk4 = 1680;
    } catch (Gk4) {
        stack = sk4.slice();
        fk4 = Opposite(1);
    }
    try {
        var jk4 = stack.slice();
        // Kk4 = g_win['window']['screen'] ? g_win['window']['screen']['availHeight'] : Opposite(1);
        Kk4 = 966;
    } catch (vk4) {
        stack = jk4.slice();
        Kk4 = Opposite(1);
    }
    try {
        var mk4 = stack.slice();
        // Pk4 = g_win['window']['screen'] ? g_win['window']['screen']['width'] : Opposite(1);
        Pk4 = 1680;
    } catch (Ak4) {
        stack = mk4.slice();
        Pk4 = Opposite(1);
    }
    try {
        var EX4 = stack.slice();
        // Dk4 = g_win['window']['screen'] ? g_win['window']['screen']['height'] : Opposite(1);
        Dk4= 1050;
    } catch (HX4) {
        stack = EX4.slice();
        Dk4 = Opposite(1);
    }
    try {
        var RX4 = stack.slice();
        // Sk4 = g_win['window']['innerHeight'] || (g_win['document']['body'] && is_in(decrypt_obj.lR(12, 0, 48, 29, 17), g_win['document']['body']) ? g_win['document']['body'][decrypt_obj.lR.apply(null, [
        Sk4 = 845;
    } catch (MX4) {
        stack = RX4.slice();
        Sk4 = Opposite(zv[4]);
    }
    try {
        var JX4 = stack.slice();
        // Qk4 = g_win['window']['innerWidth'] || (g_win['document']['body'] && is_in(decrypt_obj.pZ.call(null, 17, 10, 714, 52), g_win['document']['body']) ? g_win['document']['body'][decrypt_obj.pZ.call(null, logical_neg(1), 10, 714, 50)] : g_win['document']['documentElement'] && is_in(decrypt_obj.pZ.call(null, 8, 10, 714, 25), g_win['document']['documentElement']) ? g_win['document']['documentElement'][decrypt_obj.pZ.apply(null, [
        //     logical_neg(1),
        //     10,
        //     714,
        //     93
        // ])] : Opposite(1));
        Qk4 = 1680;
    } catch (bX4) {
        stack = JX4.slice();
        Qk4 = Opposite(1);
    }
    try {
        var kX4 = stack.slice();
        // qk4 = is_in('outerWidth', g_win['window']) && is_ueq_strict(VoidVar(0), g_win['window']['outerWidth']) ? g_win['window']['outerWidth'] : Opposite(1);
        qk4 = 1680;
    } catch (XX4) {
        stack = kX4.slice();
        qk4 = Opposite(1);
    }
    hX4 = g_win['parseInt'](div(g_win['window'].bmak['startTs'], zv[36]), 10);
    nH4 = g_win['parseInt'](div(hX4, 23), 10);
    var rX4 = g_win['Math']['random']();
    var pX4 = g_win['parseInt'](div(mul(zv[20], rX4), 2), 10);
    var WX4 = ''['concat'](rX4);
    WX4 = add(WX4['slice'](zv[8], 11), pX4);
    rk4();
    var tX4 = x44(getNavigatorProductInfo(), 4);
    var VX4 = tX4[0];
    var TX4 = tX4[1];
    var BX4 = tX4[2];
    var NX4 = tX4[3];
    var dX4 = g_win['window']['_phantom'] ? 1 : 0;
    var cX4 = g_win['window']['webdriver'] ? zv[4] : 0;
    var OX4 = g_win['window']['domAutomation'] ? 1 : 0;
    var nX4;
    var vX4 = 0;
    var Zk4 = 0;
    nX4 = ''['concat'](Ik4, ',uaend,')['concat'](function YX4() {
        stack.push(803);
        var UX4;
        var lX4;
        // var CX4 = g_win['window']['addEventListener'] ? 1 : 0;
        var CX4 = 1;
        // var IX4 = g_win['window']['XMLHttpRequest'] ? 1 : 0;
        var IX4 = 1;
        // var xX4 = g_win['window']['XDomainRequest'] ? 1 : zv[8];
        var xX4 = 0;
        // var FX4 = g_win['window']['emit'] ? 1 : 0;
        var FX4 = 0;
        // var fX4 = g_win['window']['DeviceOrientationEvent'] ? 1 : 0;
        var fX4 = 1;
        // var KX4 = g_win['window']['DeviceMotionEvent'] ? 1 : 0;
        var KX4 = 1;
        // var PX4 = g_win['window']['TouchEvent'] ? 1 : 0;
        var PX4 = 1;
        // var DX4 = g_win['window']['spawn'] ? 1 : 0;
        var DX4 = 0;
        // var SX4 = g_win['window']['chrome'] ? 1 : 0;
        var SX4 = 1;
        // var QX4 = g_win['Function']['prototype'].bind ? 1 : 0;
        var QX4 = 1;
        // var qX4 = g_win['window']['Buffer'] ? 1 : zv[8];
        var qX4 = 0;
        // var LX4 = g_win['window']['PointerEvent'] ? zv[4] : 0;
        var LX4 = 1;
        try {
            var zX4 = stack.slice();
            // UX4 = g_win['window']['innerWidth'] ? 1 : 0;
            UX4 = 1;
        } catch (gX4) {
            stack = zX4.slice();
            UX4 = 0;
        }
        try {
            var sX4 = stack.slice();
            // lX4 = g_win['window']['outerWidth'] ? 1 : 0;
            lX4 = 1;
        } catch (GX4) {
            stack = sX4.slice();
            lX4 = 0;
        }
        var jX4;
        jX4 = add(add(add(add(add(add(add(add(add(add(add(add(add(CX4, left_shift(IX4, 1)), left_shift(xX4, 2)), left_shift(FX4, 3)), left_shift(fX4, 4)), left_shift(KX4, 5)), left_shift(PX4, 6)), left_shift(DX4, zv[37])), left_shift(UX4, 8)), left_shift(lX4, zv[25])), left_shift(SX4, zv[19])), left_shift(QX4, 11)), left_shift(qX4, 12)), left_shift(LX4, 13));
        stack.pop();
        return jX4;
    }(), ',')['concat'](VX4, ',')['concat'](TX4, ',')['concat'](BX4, ',')['concat'](NX4, ',')['concat'](dX4, ',')['concat'](cX4, ',')['concat'](OX4, ',')['concat'](hX4, ',')['concat'](vX4, ',')['concat'](fk4, ',')['concat'](Kk4, ',')['concat'](Pk4, ',')['concat'](Dk4, ',')['concat'](Qk4, ',')['concat'](Sk4, ',')['concat'](qk4, ',')['concat'](function mX4() {
        stack.push(489);
        // var AX4 = [];
        var AX4 = [
            ",cpen:0",
            "i1:0",
            "dm:0",
            "cwen:0",
            "non:1",
            "opc:0",
            "fc:0",
            "sc:0",
            "wrc:1",
            "isc:0",
            "vib:1",
            "bat:1",
            "x11:0",
            "x12:1"
        ];
        // AX4['push'](',cpen:'['concat'](g_win['window']['callPhantom'] ? 1 : 0));
        // AX4['push']('i1:'['concat'](g_win['window']['ActiveXObject'] && is_in('ActiveXObject', g_win['window']) ? 1 : zv[8]));
        // AX4['push']('dm:'['concat'](is_eq_nostrict('number', typeof g_win['document']['documentMode']) ? zv[4] : 0));
        // AX4['push']('cwen:'['concat'](g_win['window']['chrome'] && g_win['window']['chrome']['webstore'] ? 1 : 0));
        // AX4['push']('non:'['concat'](g_win['navigator']['onLine'] ? 1 : 0));
        // AX4['push']('opc:'['concat'](g_win['window']['opera'] ? 1 : 0));
        // AX4['push']('fc:'['concat'](is_ueq_nostrict('undefined', typeof g_win['InstallTrigger']) ? zv[4] : 0));
        // AX4['push']('sc:'['concat'](g_win['window']['HTMLElement'] && is_lg(g_win['Object']['prototype']['toString'].call(g_win['window']['HTMLElement'])['indexOf']('Constructor'), 0) ? 1 : 0));
        // AX4['push']('wrc:'['concat'](is_eq_nostrict('function', typeof g_win['window']['RTCPeerConnection']) || is_eq_nostrict('function', typeof g_win['window'][decrypt_obj.K7(logical_neg(logical_neg(0)), 330, logical_neg({}), 104)]) || is_eq_nostrict('function', typeof g_win['window'][decrypt_obj.P7(54, 202, 38, 21)]) ? 1 : 0));
        // AX4['push']('isc:'['concat'](is_in('mozInnerScreenY', g_win['window']) ? g_win['window']['mozInnerScreenY'] : 0));
        // AX4['push']('vib:'['concat'](is_eq_nostrict('function', typeof g_win['navigator']['vibrate']) ? 1 : 0));
        // AX4['push']('bat:'['concat'](is_eq_nostrict('function', typeof g_win['navigator']['getBattery']) ? 1 : 0));
        // AX4['push']('x11:'['concat'](g_win['Array']['prototype']['forEach'] ? zv[8] : 1));
        // AX4['push']('x12:'['concat'](is_in('FileReader', g_win['window']) ? 1 : 0));
        var Eh4;
        Eh4 = AX4['join'](',');
        stack.pop();
        return Eh4;
    }(), ',')['concat'](xk4, ',')['concat'](WX4, ',')['concat'](Fk4, ',')['concat'](Zk4, ',')['concat'](Lk4, ',loc:');
    stack.pop();
    return nX4;
};

function getPluginInfo() {
    stack.push(917);
    var ConstArr27Jkr = [
        'WebEx64 General Plugin Container',
        'YouTube Plug-in',
        'Java Applet Plug-in',
        'Shockwave Flash',
        'iPhotoPhotocast',
        'SharePoint Browser Plug-in',
        'Chrome Remote Desktop Viewer',
        'Chrome PDF Viewer',
        'Native Client',
        'Unity Player',
        'WebKit-integrierte PDF',
        'QuickTime Plug-in',
        'RealPlayer Version Plugin',
        'RealPlayer(tm) G2 LiveConnect-Enabled Plug-In (32-bit)',
        'Mozilla Default Plug-in',
        'Adobe Acrobat',
        'AdobeAAMDetect',
        'Google Earth Plug-in',
        'Java Plug-in 2 for NPAPI Browsers',
        'Widevine Content Decryption Module',
        'Microsoft Office Live Plug-in',
        'Windows Media Player Plug-in Dynamic Link Library',
        'Google Talk Plugin Video Renderer',
        'Edge PDF Viewer',
        'Shockwave for Director',
        'Default Browser Helper',
        'Silverlight Plug-In'
    ];
    if (is_eq_strict(VoidVar(0), g_win['navigator']['plugins'])) {
        var mkr;
        mkr = null;
        stack.pop();
        return mkr;
    }
    for (var Ukr = ConstArr27Jkr['length'], fkr = '', Pkr = 0; is_lt(Pkr, Ukr); Pkr++) {
        var nkr = ConstArr27Jkr[Pkr];
        is_ueq_strict(VoidVar(0), g_win['navigator']['plugins'][nkr]) && (fkr = ''['concat'](fkr, ',')['concat'](Pkr));
    }
    var qkr;
    qkr = fkr;
    stack.pop();
    return qkr;
}
function isRTCPeerConnection() {
    stack.push(646);
    var GEr;
    GEr = is_eq_nostrict('function', typeof g_win['window']['RTCPeerConnection']) || is_eq_nostrict('function', typeof g_win['window'][decrypt_obj.rp.apply(null, [
        357,
        95,
        logical_neg(logical_neg(1)),
        28,
        20,
        367
    ])]) || is_eq_nostrict('function', typeof g_win['window'][decrypt_obj.sH.call(null, 28, 380, 59)]);
    stack.pop();
    return GEr;
}
function isSupportSessionStorage() {
    stack.push(910);
    try {
        var rEr = stack.slice();
        var pEr;
        pEr = logical_neg(logical_neg(g_win['window']['sessionStorage']));
        stack.pop();
        return pEr;
    } catch (SEr) {
        stack = rEr.slice();
        var BEr;
        BEr = logical_neg(QY[2]);
        stack.pop();
        return BEr;
    }
    stack.pop();
}
function isSupportLocalStorage() {
    stack.push(577);
    try {
        var VEr = stack.slice();
        var XEr;
        XEr = logical_neg(logical_neg(g_win['window']['localStorage']));
        stack.pop();
        return XEr;
    } catch (HEr) {
        stack = VEr.slice();
        var bEr;
        bEr = logical_neg(1);
        stack.pop();
        return bEr;
    }
    stack.pop();
}
function isIndexedDB() {
    stack.push(498);
    var LEr;
    LEr = logical_neg(logical_neg(g_win['window']['indexedDB']));
    stack.pop();
    return LEr;
}

function getTimezoneOffset() {
    stack.push(738);
    var gkr;
    gkr = new g_win['Date']()['getTimezoneOffset']();
    stack.pop();
    return gkr;
}

function getPluginFingerFPArr() {
    stack.push(59);
    try {
        var Fp4 = stack.slice();
        var fp4 = getDateNow();
        var Kp4;
        Kp4 = Kv(28, [
            'fpValStr',
            function Pp4() {
                stack.push(804);
                var Dp4 = g_win['screen']['colorDepth'] ? g_win['screen']['colorDepth'] : Opposite(1);
                var Sp4 = g_win['screen']['pixelDepth'] ? g_win['screen']['pixelDepth'] : Opposite(1);
                var Qp4 = g_win['navigator']['cookieEnabled'] ? g_win['navigator']['cookieEnabled'] : Opposite(1);
                var qp4 = g_win['navigator']['javaEnabled'] ? g_win['navigator']['javaEnabled']() : Opposite(1);
                var Lp4 = g_win['navigator']['doNotTrack'] ? g_win['navigator']['doNotTrack'] : Opposite(1);
                var zp4;
                zp4 = [
                    '',
                    'brave_brws',
                    'dis',
                    getPluginInfo(),
                    isSupportSessionStorage(),
                    isSupportLocalStorage(),
                    isIndexedDB(),
                    getTimezoneOffset(),
                    isRTCPeerConnection(),
                    Dp4,
                    Sp4,
                    Qp4,
                    qp4,
                    Lp4
                ]['join'](';');
                stack.pop();
                return zp4;
            }()['replace'](/"/g, '\\"'),
            'td',
            sub(getDateNow(), fp4)
        ]);
        stack.pop();
        return Kp4;
    } catch (Ap4) {
        stack = Fp4.slice();
    }
    stack.pop();
}

function getDocumentCookieByKey(ZEr) {
    stack.push(889);
    if (g_win['document']['cookie'])
        for (var QEr = ''['concat'](ZEr, '='), CEr = g_win['document']['cookie']['split']('; '), vEr = 0; vEr < CEr['length']; vEr++) {
            var dEr = CEr[vEr];
            if (0 === dEr['indexOf'](QEr)) {
                var IEr = dEr['substring'](QEr['length'], dEr['length']);
                if (-1 !== IEr['indexOf']('~') || -1 !== g_win['decodeURIComponent'](IEr)['indexOf']('~')) {
                    var xEr;
                    xEr = IEr;
                    stack.pop();
                    return xEr;
                }
            }
        }
    var DEr;
    DEr = false;
    stack.pop();
    return DEr;
}

var getCookieabck = function () {
    stack.push(149);
    var ck4 = '0';
    try {
        var Ok4 = stack.slice();
        (ck4 = getDocumentCookieByKey(Yk4)) || (dR4 = 1, ck4 = Uk4 ? '2' : '1');
    } catch (lk4) {
        stack = Ok4.slice();
    }
    var Ck4;
    Ck4 = ck4;
    stack.pop();
    return Ck4;
};

var callSetVoicesDecArg60_3 = function () {
    stack.push(928);
    g_win['window']['speechSynthesis'] && g_win['window']['speechSynthesis']['getVoices'] ? (setVoicesDecArg60_3(), is_ueq_strict(VoidVar(0), g_win['window']['speechSynthesis']['onvoiceschanged']) && (g_win['window']['speechSynthesis']['onvoiceschanged'] = setVoicesDecArg60_3)) : arg60_3 = 'n';
    stack.pop();
};

function GetArrToHexStr(Q1r) {
    stack.push(937);
    for (var C1r = '', v1r = 0; v1r < Q1r['length']; v1r++)
        C1r += 2 === Q1r[v1r]['toString'](16)['length'] ? Q1r[v1r]['toString'](16) : '0'['concat'](Q1r[v1r]['toString'](16));
    var d1r;
    d1r = C1r;
    stack.pop();
    return d1r;
}

function SignDataToArr32(jwr) {
    stack.push(999);
    for (var ConstArr64wwr = [
        1116352408,
        1899447441,
        3049323471,
        3921009573,
        961987163,
        1508970993,
        2453635748,
        2870763221,
        3624381080,
        310598401,
        607225278,
        1426881987,
        1925078388,
        2162078206,
        2614888103,
        3248222580,
        3835390401,
        4022224774,
        264347078,
        604807628,
        770255983,
        1249150122,
        1555081692,
        1996064986,
        2554220882,
        2821834349,
        2952996808,
        3210313671,
        3336571891,
        3584528711,
        113926993,
        338241895,
        666307205,
        773529912,
        1294757372,
        1396182291,
        1695183700,
        1986661051,
        2177026350,
        2456956037,
        2730485921,
        2820302411,
        3259730800,
        3345764771,
        3516065817,
        3600352804,
        4094571909,
        275423344,
        430227734,
        506948616,
        659060556,
        883997877,
        958139571,
        1322822218,
        1537002063,
        1747873779,
        1955562222,
        2024104815,
        2227730452,
        2361852424,
        2428436474,
        2756734187,
        3204031479,
        3329325298
    ], Owr = 1779033703, kwr = 3144134277, Ewr = 1013904242, twr = 2773480762, Rwr = 1359893119, cwr = 2600822924, Zwr = 528734635, Qwr = 1541459225, Cwr = function vwr(dwr) {
        stack.push(233);
        var Iwr;
        Iwr = g_win['unescape'](g_win['encodeURIComponent'](dwr));
        stack.pop();
        return Iwr;
    }(jwr), xwr = 8 * Cwr['length'], Dwr = (Cwr += g_win['String']['fromCharCode'](128))['length'] / 4 + 2, Awr = g_win['Math']['ceil'](Dwr / 16), swr = new g_win['Array'](Awr), Ywr = 0; Ywr < Awr; Ywr++) {
        swr[Ywr] = new g_win['Array'](16);
        for (var Wwr = 0; Wwr < 16; Wwr++)
            swr[Ywr][Wwr] = Cwr['charCodeAt'](64 * Ywr + 4 * Wwr) << 24 | Cwr['charCodeAt'](64 * Ywr + 4 * Wwr + 1) << 16 | Cwr['charCodeAt'](64 * Ywr + 4 * Wwr + 2) << 8 | Cwr['charCodeAt'](64 * Ywr + 4 * Wwr + 3) << 0;
    }
    var lwr = xwr / g_win['Math']['pow'](2, 32);
    swr[Awr - 1][14] = g_win['Math']['floor'](lwr);
    swr[Awr - 1][15] = xwr;
    for (var hwr = 0; hwr < Awr; hwr++) {
        for (var Nwr = new g_win['Array'](64), Kwr = Owr, Mwr = kwr, gwr = Ewr, Jwr = twr, mwr = Rwr, Uwr = cwr, fwr = Zwr, Pwr = Qwr, nwr = 0; nwr < 64; nwr++) {
            var qwr;
            var G1r;
            var r1r = undefined;
            var p1r = undefined;
            nwr < 16 ? Nwr[nwr] = swr[hwr][nwr] : (r1r = S1r(Nwr[nwr - 15], 7) ^ S1r(Nwr[nwr - 15], 18) ^ Nwr[nwr - 15] >>> 3, p1r = S1r(Nwr[nwr - 2], 17) ^ S1r(Nwr[nwr - 2], 19) ^ Nwr[nwr - 2] >>> 10, Nwr[nwr] = Nwr[nwr - 16] + r1r + Nwr[nwr - 7] + p1r);
            qwr = Pwr + (p1r = S1r(mwr, 6) ^ S1r(mwr, 11) ^ S1r(mwr, 25)) + (mwr & Uwr ^ ~mwr & fwr) + ConstArr64wwr[nwr] + Nwr[nwr];
            G1r = Kwr & Mwr ^ Kwr & gwr ^ Mwr & gwr;
            Pwr = fwr;
            fwr = Uwr;
            Uwr = mwr;
            mwr = Jwr + qwr >>> 0;
            Jwr = gwr;
            gwr = Mwr;
            Mwr = Kwr;
            Kwr = qwr + ((r1r = S1r(Kwr, 2) ^ S1r(Kwr, 13) ^ S1r(Kwr, 22)) + G1r) >>> 0;
        }
        Owr += Kwr;
        kwr += Mwr;
        Ewr += gwr;
        twr += Jwr;
        Rwr += mwr;
        cwr += Uwr;
        Zwr += fwr;
        Qwr += Pwr;
    }
    var B1r;
    B1r = [
        Owr >> 24 & 255,
        Owr >> 16 & 255,
        Owr >> 8 & 255,
        255 & Owr,
        kwr >> 24 & 255,
        kwr >> 16 & 255,
        kwr >> 8 & 255,
        255 & kwr,
        Ewr >> 24 & 255,
        Ewr >> 16 & 255,
        Ewr >> 8 & 255,
        255 & Ewr,
        twr >> 24 & 255,
        twr >> 16 & 255,
        twr >> 8 & 255,
        255 & twr,
        Rwr >> 24 & 255,
        Rwr >> 16 & 255,
        Rwr >> 8 & 255,
        255 & Rwr,
        cwr >> 24 & 255,
        cwr >> 16 & 255,
        cwr >> 8 & 255,
        255 & cwr,
        Zwr >> 24 & 255,
        Zwr >> 16 & 255,
        Zwr >> 8 & 255,
        255 & Zwr,
        Qwr >> 24 & 255,
        Qwr >> 16 & 255,
        Qwr >> 8 & 255,
        255 & Qwr
    ];
    stack.pop();
    return B1r;
}

var setVoicesDecArg60_3 = function () {
    stack.push(876);
    var zTr = g_win['window']['speechSynthesis']['getVoices']();
    if (is_lg(zTr['length'], QY[3])) {
        for (var jTr = '', wTr = 0; is_lt(wTr, zTr['length']); wTr++)
            jTr += ''['concat'](zTr[wTr]['voiceURI'], '_')['concat'](zTr[wTr]['lang']);
        vbr = zTr['length'];
        arg60_3 = GetArrToHexStr(SignDataToArr32(jTr));
    } else
        arg60_3 = '0';
    stack.pop();
};

var SetPermissinInfoArg40 = function () {
    stack.push(394);
    var OTr = [];
    try {
        var kTr = stack.slice();
        if (logical_neg(g_win['navigator']['permissions'])) {
            var ETr;
            ETr = VoidVar(sensor_arg40 = 6);
            stack.pop();
            return ETr;
        }
        sensor_arg40 = 8;
        var tTr = [
            'geolocation',
            'notifications',
            'push',
            'midi',
            'camera',
            'microphone',
            'speaker',
            'device-info',
            'background-sync',
            'bluetooth',
            'persistent-storage',
            'ambient-light-sensor',
            'accelerometer',
            'gyroscope',
            'magnetometer',
            'clipboard',
            'accessibility-events',
            'clipboard-read',
            'clipboard-write',
            'payment-handler'
        ]['map'](function (RTr, cTr) {
            return function ZTr(QTr, CTr) {
                stack.push(735);
                var vTr;
                vTr = g_win['navigator']['permissions']['query'](w2(24, [
                    'name',
                    QTr
                ]))['then'](function (dTr) {
                    stack.push(88);
                    switch (dTr['state']) {
                        case 'prompt':
                            OTr[CTr] = 1;
                            break;
                        case 'granted':
                            OTr[CTr] = 2;
                            break;
                        case decrypt_obj.P1(169, 415):
                            OTr[CTr] = 0;
                            break;
                        default:
                            OTr[CTr] = 5;
                    }
                    stack.pop();
                })['catch'](function (ITr) {
                    stack.push(854);
                    OTr[CTr] = is_ueq_strict(Opposite(QY[2]), ITr['message']['indexOf']('is not a valid enum value of type PermissionName')) ? 4 : 3;
                    stack.pop();
                });
                stack.pop();
                return vTr;
            }(RTr, cTr);
        });
        g_win['Promise']['all'](tTr)['then'](function () {
            stack.push(706);
            sensor_arg40 = OTr['join']('');
            stack.pop();
        });
    } catch (xTr) {
        stack = kTr.slice();
        sensor_arg40 = 7;
    }
    stack.pop();
};

var QY  = [300000, 4095, 1, 0, 8, 3, 10000, 50, 10, 2, 4, 11, 14, 15, 18, 30, 32, 8888888, 7777777, 126, 0.7, 0.95, 0.98, 0.4, 0.9, 0.8, 0.1, 0.07, 255, 0.22, 4294967296, 999999, 65535, 65793, 4294967295, 4282663, 8388607, 92, 127, 23, 13, 3600000, 3540, 1000, 5, 20, 3000];
// var Adr = 0;
var arg26_20 = '0';
var sensor_arg40 = '';
var vbr = Opposite(1);
var arg42_1 = '';
var hVr = ',,,,,,,';
var arg60_4 = hVr;
var arg44_1 = '';
var arg44_2 = '';
var arg44_3 = '';
var arg42_2 = '';
var arg46_1 = '';
var arg44_4 = '';
var arg42_3 = '';
var sensor_arg48 = '';
var arg60_1 = '';
var arg60_2 = '';
var p4r = logical_neg(1);
var arg60_3 = '';
var sensor_arg4 = '';
var tbr = 0;
var Rbr = 0;
var sensor_arg18 = '';
var sensor_arg14 = '';
// var BTr = 0;
// var WLr = 0;
var Cbr = 0;
var Qbr = 0;
// var sdr = 0;
var arg26_5 = 0;
var arg26_4 = 0;
var sensor_arg22 = '';
var cbr = 0;
var AVr = QY[3];
var DVr = Opposite(1);
var fpValArr = w2(24, [
    'fpValStr',
    '-1',
    'rVal',
    '-1',
    'rCFP',
    '-1',
    'td',
    Opposite(QY[31])
]);
// var wzr = QY[3];
var sensor_arg56 = 0;
var Zbr = QY[3];
var YVr = logical_neg(1);
// var Kjr = 0;
var FHr = 0;
var sensor_arg30 = '-1';
var arg26_19 = 0;
var arg26_12 = 0;
// var IFr = 0;
var bHr = logical_neg(1);
var LHr = logical_neg(1);
// var fjr = logical_neg(1);
// var sTr = QY[3];
var arg26_31 = 0;
// var Ydr = logical_neg(1);
// var Wdr = logical_neg(1);
// var ldr = logical_neg(1);
var arg26_33 = '';


var jXr = '';
var SXr = 0;
var JVr = 0;
var mouse_track = '';
var Ibr = 0;
var xbr = 0;
var sum_mouse_data = 0;
var kXr = '';
var Dbr = 0;
var Abr = 0;
var fVr = 0;
var OXr = '';
var sbr = 0;
var Ybr = 0;
var UVr = 0;
var mouse_move_num = 0;
var pointer_click_num = 0;
var VXr = 0;
// var NRr = 150;
// var KRr = 100;
// var MRr = 75;
// var gRr = 25;
// var JRr = 25;
// var mRr = 25;
// var URr = 25;
// var fRr = Opposite(1);
// var PRr = QY[3];


var initSensorArgs = function () {
    stack.push(991);
    g_win['window'].bmak['startTs'] = getDateNow();
    sensor_arg18 = '';
    tbr = 0;
    arg26_4 = QY[3];
    sensor_arg14 = '';
    Rbr = 0;
    arg26_5 = 0;
    sensor_arg22 = '';
    cbr = 0;
    AVr = QY[3];
    Zbr = 0;
    DVr = Opposite(1);
    jbr['ajTypeBitmask'] = 0;
    Qbr = 0;
    Cbr = 0;
    sensor_arg40 = '';
    p4r = logical_neg(1);
    arg60_1 = '';
    arg60_2 = '';
    arg60_3 = '';
    vbr = Opposite(1);
    arg42_1 = '';
    arg60_4 = hVr;
    arg44_1 = '';
    sensor_arg48 = '';
    arg44_2 = '';
    arg44_3 = '';
    arg42_2 = '';
    arg46_1 = '';
    arg44_4 = '';
    arg42_3 = '';
    (function dbr() {
        stack.push(737);
        jXr = '';
        SXr = 0;
        JVr = QY[3];
        mouse_track = '';
        Ibr = QY[3];
        xbr = 0;
        sum_mouse_data = 0;
        kXr = '';
        Dbr = 0;
        Abr = 0;
        fVr = 0;
        OXr = '';
        sbr = 0;
        Ybr = 0;
        UVr = 0;
        mouse_move_num = 0;
        pointer_click_num = 0;
        VXr = 0;
        stack.pop();
    }());
    stack.pop();
};

var getSensorArrByDtPXZSxIUm = function (bVr, LVr) {
    stack.push(647);
    TVr('<bpd>');
    var FVr = 0;
    var zVr = '';
    var sensor_arr = [];
    try {
        var wVr = stack.slice();
        FVr = getDateNow();
        var arg26_8 = sub(getDateNow(), g_win['window'].bmak['startTs']);
        var arg26_21 = '3';
        arg26_21 = getCookieabck();
        var sensor_arg2 = getUAEncStr();
        // var cVr = g_win['window']['DeviceOrientationEvent'] ? 'do_en' : decrypt_obj.Mz.apply(null, [
        //     174,
        //     6,
        //     985
        // ]);
        // var ZVr = g_win['window']['DeviceMotionEvent'] ? 'dm_en' : decrypt_obj.mz(173, 1198, 26, 96);
        // var QVr = g_win['window']['TouchEvent'] ? 't_en' : decrypt_obj.CS.apply(null, [
        //     375,
        //     70,
        //     5,
        //     271
        // ]);
        // var sensor_arg8 = ''['concat'](cVr, ',')['concat'](ZVr, ',')['concat'](QVr);
        var sensor_arg8 = 'do_en,dm_en,t_en';
        var sensor_arg16 = getHtmlInputElementInfo();
        var sensor_arg28 = g_win['document']['URL']['replace'](/\\|"/g, '');
        var sensor_arg24 = ''['concat'](DVr, ',')['concat'](AVr);
        logical_neg(fpValArr['fpValCalculated']) && (is_eq_strict(logical_neg(QY[2]), YVr) || is_lg(AVr, 0)) && (fpValArr = g_win['Object']['assign'](fpValArr, getPluginFingerFPArr(), w2(24, [
            'fpValCalculated',
            logical_neg(QY[3])
        ])));
        is_eq_strict(arg60_4, hVr) && (is_eq_strict(logical_neg(1), YVr) || is_lg(AVr, 1)) && (arg60_4 = w2(7, [
            NVr,
            4
        ]));
        var KVr = MVr(function gVr() {
            return [
                JVr,
                sum_mouse_data,
                UVr,
                fVr
            ];
        }(), 4);
        console.log('KVr:' + KVr);
        console.log(KVr);
        var arg26_1 = KVr[0];
        var arg26_2 = KVr[1];
        var arg26_3 = KVr[2];
        var arg26_6 = KVr[3];
        var rXr = MVr(function pXr() {
            return [
                SXr,
                mouse_move_num,
                VXr,
                pointer_click_num
            ];
        }(), 4);
        console.log('rXr:' + rXr);
        console.log(rXr);
        var arg26_13 = rXr[0];
        var arg26_14 = rXr[1];
        var arg26_16 = rXr[QY[9]];
        var arg26_17 = rXr[3];
        var FXr = MVr(function zXr() {
            return [
                jXr,
                mouse_track,
                OXr,
                kXr
            ];
        }(), 4);
        console.log('FXr:' + FXr);
        console.log(FXr);
        var sensor_arg6 = FXr[0];
        var sensor_arg10 = FXr[1];
        var sensor_arg12 = FXr[QY[9]];
        var sensor_arg20 = FXr[3];
        var arg26_7 = add(add(add(add(add(arg26_1, arg26_2), arg26_4), arg26_5), arg26_3), arg26_6);
        var vXr = w2(7, [
            dXr,
            5,
            g_win['window'].bmak['startTs']
        ]);
        var sensor_arg54 = xXr()(w2(24, [
            'startTimestamp',
            g_win['window'].bmak['startTs'],
            'deviceData',
            sensor_arg2,
            'mouseMoveData',
            sensor_arg10,
            'totVel',
            arg26_7,
            'deltaTimestamp',
            arg26_8
        ]));
        var arg26_18 = sub(getDateNow(), g_win['window'].bmak['startTs']);
        var arg26_15 = g_win['parseInt'](div(arg26_12, 6), QY[8]);
        var arg26_25 = function WXr() {
            stack.push(968);
            try {
                var lXr = stack.slice();
                var hXr;
                hXr = add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(add(g_win['Boolean'](g_win['navigator']['credentials']), left_shift(g_win['Boolean'](g_win['navigator']['appMinorVersion']), 1)), left_shift(g_win['Boolean'](g_win['navigator']['bluetooth']), 2)), left_shift(g_win['Boolean'](g_win['navigator']['storage']), 3)), left_shift(g_win['Boolean'](g_win['Math']['imul']), 4)), left_shift(g_win['Boolean'](g_win['navigator']['getGamepads']), 5)), left_shift(g_win['Boolean'](g_win['navigator']['getStorageUpdates']), 6)), left_shift(g_win['Boolean'](g_win['navigator']['hardwareConcurrency']), 7)), left_shift(g_win['Boolean'](g_win['navigator']['mediaDevices']), 8)), left_shift(g_win['Boolean'](g_win['navigator']['mozAlarms']), 9)), left_shift(g_win['Boolean'](g_win['navigator']['mozConnection']), 10)), left_shift(g_win['Boolean'](g_win['navigator']['mozIsLocallyAvailable']), 11)), left_shift(g_win['Boolean'](g_win['navigator']['mozPhoneNumberService']), 12)), left_shift(g_win['Boolean'](g_win['navigator']['msManipulationViewsEnabled']), 13)), left_shift(g_win['Boolean'](g_win['navigator']['permissions']), 14)), left_shift(g_win['Boolean'](g_win['navigator']['registerProtocolHandler']), 15)), left_shift(g_win['Boolean'](g_win['navigator']['requestMediaKeySystemAccess']), 16)), left_shift(g_win['Boolean'](g_win['navigator']['requestWakeLock']), 17)), left_shift(g_win['Boolean'](g_win['navigator']['sendBeacon']), 18)), left_shift(g_win['Boolean'](g_win['navigator']['serviceWorker']), 19)), left_shift(g_win['Boolean'](g_win['navigator']['storeWebWideTrackingException']), 20)), left_shift(g_win['Boolean'](g_win['navigator']['webkitGetGamepads']), 21)), left_shift(g_win['Boolean'](g_win['navigator']['webkitTemporaryStorage']), 22)), left_shift(g_win['Boolean'](g_win['Number']['parseInt']), 23)), left_shift(g_win['Boolean'](g_win['Math']['hypot']), 24));
                stack.pop();
                return hXr;
            } catch (NXr) {
                stack = lXr.slice();
                var KXr;
                KXr = 0;
                stack.pop();
                return KXr;
            }
            stack.pop();
        }();
        g_win['window'].bmak['firstLoad'] && (w2(7, [
            SetPermissinInfoArg40,
            6
        ]), callSetVoicesDecArg60_3());
        var sensor_arg26 = [
            add(arg26_1, 1),
            add(arg26_2, 32),
            add(arg26_3, 32),
            arg26_4,
            arg26_5,
            arg26_6,
            arg26_7,
            arg26_8,
            QY[3],
            g_win['window'].bmak['startTs'],
            fpValArr['td'],
            arg26_12,
            arg26_13,
            arg26_14,
            arg26_15,
            arg26_16,
            arg26_17,
            arg26_18,
            arg26_19,
            arg26_20,
            arg26_21,
            w2(7, [
                SignDataToInt,
                0,
                arg26_21
            ]),
            fpValArr['rVal'],
            fpValArr['rCFP'],
            arg26_25,
            'PiZtE',
            vXr[0],
            vXr[1],
            getNoheadBrowserInfo(),
            isNavigatorWebdriver(g_win['window']),
            arg26_31,
            ',',
            arg26_33
        ]['join'](',');
        var sensor_arg52 = ''['concat'](w2(7, [
            SignDataToInt,
            0,
            fpValArr['fpValStr']
        ]));
        logical_neg(p4r) && (is_eq_strict(logical_neg(1), YVr) || is_lg(AVr, QY[3])) && (logical_neg(function S4r() {
            stack.push(674);
            var ConstArr14B4r = [
                'Monospace',
                'Wingdings 2',
                'ITC Bodoni 72 Bold',
                'Menlo',
                'Gill Sans MT',
                'Lucida Sans',
                'Bodoni 72',
                'Serif',
                'Shree Devanagari 714',
                'Microsoft Tai Le',
                'Nimbus Roman No 9 L',
                'Candara',
                'Press Start 2P',
                'Waseem'
            ];
            try {
                var V4r = stack.slice();
                var X4r = g_win['document']['createElement']('span');
                X4r['innerHTML'] = 'mmmmmmmmlli';
                X4r['style']['fontSize'] = '192px';
                var H4r = '';
                var b4r = g_win['document']['getElementsByTagName']('body')[0];
                var L4r = b4r;
                var T4r = logical_neg(1);
                is_lg(g_win['window']['scrollY'], 0) && VoidVar(0)() && (T4r = logical_neg(0));
                T4r && ((L4r = g_win['document']['createElement']('div'))['style'][decrypt_obj.qj(1, 850, logical_neg(logical_neg(0)), 85)] = decrypt_obj.Gw.apply(null, [
                    104,
                    713
                ]), b4r['appendChild'](L4r));
                L4r ? (ConstArr14B4r['forEach'](function (z4r) {
                    stack.push(606);
                    X4r['style']['fontFamily'] = z4r;
                    L4r['appendChild'](X4r);
                    H4r += ''['concat'](z4r, ':')['concat'](X4r['offsetWidth'], ',')['concat'](X4r['offsetHeight'], ';');
                    L4r['removeChild'](X4r);
                    stack.pop();
                }), arg60_1 = GetArrToHexStr(SignDataToArr32(H4r))) : arg60_1 = '';
                T4r && b4r['removeChild'](L4r);
                arg60_2 = is_in('devicePixelRatio', g_win['window']) && is_ueq_strict(VoidVar(QY[3]), g_win['window']['devicePixelRatio']) ? g_win['window']['devicePixelRatio'] : Opposite(1);
            } catch (O4r) {
                stack = V4r.slice();
                arg60_1 = '';
                arg60_2 = Opposite(QY[2]);
            }
            stack.pop();
        }()), p4r = logical_neg(QY[3]));
        var sensor_arg60 = ''['concat'](arg60_1, ',')['concat'](arg60_2, ',')['concat'](arg60_3, ',')['concat'](arg60_4);
        var sensor_arg32 = getIsSeleniumArr();
        var c4r = function Z4r() {
            stack.push(649);
            var Q4r = tSr();
            var C4r = [];
            if (is_ueq_nostrict(null, Q4r))
                for (var v4r = 0; is_lt(v4r, Q4r['length']); v4r++) {
                    var d4r = Q4r[v4r];
                    if (is_lg(d4r['length'], 0)) {
                        var I4r = add(d4r[1], d4r[2]);
                        C4r[d4r[6]] = I4r;
                    }
                }
            var x4r;
            x4r = C4r;
            stack.pop();
            return x4r;
        }();
        var sensor_arg34 = '';
        var sensor_arg36 = '';
        var sensor_arg38 = '';
        if (is_ueq_strict(VoidVar(0), c4r[1])) {
            var Y4r = c4r[1];
            is_ueq_strict(VoidVar(0), W4r[Y4r]) && (sensor_arg34 = W4r[Y4r]);
        }
        if (is_ueq_strict(VoidVar(0), c4r[2])) {
            var l4r = c4r[2];
            is_ueq_strict(VoidVar(0), W4r[l4r]) && (sensor_arg36 = W4r[l4r]);
        }
        if (is_ueq_strict(VoidVar(0), c4r[3])) {
            var h4r = c4r[QY[5]];
            is_ueq_strict(VoidVar(0), W4r[h4r]) && (sensor_arg38 = W4r[h4r]);
        }
        var sensor_arg42 = ''['concat'](arg42_1, ',')['concat'](arg42_2, ',')['concat'](arg42_3);
        var sensor_arg44 = ''['concat'](arg44_1, ',')['concat'](arg44_2, ',')['concat'](arg44_3, ',')['concat'](arg44_4);
        var sensor_arg46 = ''['concat'](arg46_1);
        sensor_arr = [
            '-100',
            sensor_arg2,
            '-105',
            sensor_arg4,
            '-108',
            sensor_arg6,
            '-101',
            sensor_arg8,
            '-110',
            sensor_arg10,
            '-117',
            sensor_arg12,
            '-109',
            sensor_arg14,
            '-102',
            sensor_arg16,
            '-111',
            sensor_arg18,
            '-114',
            sensor_arg20,
            '-103',
            sensor_arg22,
            '-106',
            sensor_arg24,
            '-115',
            sensor_arg26,
            '-112',
            sensor_arg28,
            '-119',
            sensor_arg30,
            '-122',
            sensor_arg32,
            '-123',
            sensor_arg34,
            '-124',
            sensor_arg36,
            '-126',
            sensor_arg38,
            '-127',
            sensor_arg40,
            '-128',
            sensor_arg42,
            '-131',
            sensor_arg44,
            '-132',
            sensor_arg46,
            '-133',
            sensor_arg48,
            '-70',
            fpValArr['fpValStr'],
            '-80',
            sensor_arg52,
            '-90',
            sensor_arg54,
            '-116',
            sensor_arg56
        ];
        // MapStr(g_de_map);
        // console.log('sensor_arr:', sensor_arr);
        bHr && (sensor_arr['push']('-130', '1'), LHr = logical_neg(0));
        sensor_arr['push']('-129', sensor_arg60);
        zVr = THr(9, [
            sensor_arr,
            2,
            logical_neg(logical_neg(bVr))
        ]);
        FHr = sensor_arr['join'](zVr);
        TVr(',s1:'['concat'](FHr['slice'](0, QY[8])));
    } catch (zHr) {
        stack = wVr.slice();
        var jHr = '';
        try {
            var wHr = stack.slice();
            zHr[decrypt_obj.gS(374, 85, 32, 57, 5, 374)] && is_eq_nostrict('string', typeof zHr[decrypt_obj.gS.call(null, 374, 74, 42, logical_neg(logical_neg({})), 5, 374)]) ? jHr = zHr[decrypt_obj.gS(374, 90, 94, 97, 5, 374)] : is_eq_nostrict('string', typeof zHr) ? jHr = zHr : is_instanceof(zHr, g_win[decrypt_obj.Ir(328, 10, 5, 154)]) && is_eq_nostrict('string', typeof zHr['message']) && (jHr = zHr['message']);
            jHr = kHr(jHr);
            TVr(decrypt_obj.sw(170, 1168, 33, 6)['concat'](jHr));
            zVr = THr(9, [
                sensor_arr = [
                    '-100',
                    getUA(),
                    decrypt_obj.Yw(21, 847, 143),
                    jHr
                ],
                QY[9],
                logical_neg(logical_neg(bVr))
            ]);
            FHr = sensor_arr['join'](zVr);
        } catch (tHr) {
            stack = wHr.slice();
            tHr[decrypt_obj.gS(374, 50, 60, 46, 5, 374)] && is_eq_nostrict('string', typeof tHr[decrypt_obj.gS(374, 84, 32, 37, 5, 374)]) ? jHr = tHr[decrypt_obj.gS.apply(null, [
                374,
                8,
                17,
                71,
                5,
                374
            ])] : is_eq_nostrict('string', typeof tHr) && (jHr = tHr);
            jHr = kHr(jHr);
            TVr(decrypt_obj.Ww.apply(null, [
                75,
                1026,
                44
            ])['concat'](jHr));
            FHr = ''['concat'](FHr, decrypt_obj.Ww.call(null, 3, 1026, 44))['concat'](jHr);
        }
    }
    try {
        var RHr = stack.slice();
        var cHr = ZHr('0a46G5m17Vrp4o4c', 'afSbep8yjnZUjq3aL010jO15Sawj2VZfdYK8uY90uxq')['slice'](0, 16);
        var QHr = g_win['Math']['floor'](div(getDateNow(), 3600000));
        var CHr = getDateNow();
        var vHr = add(cHr, ZHr(QHr, cHr));
        CHr = sub(getDateNow(), CHr);
        var dHr = bVr || IHr();
        if (is_eq_strict(dHr[0], xHr) || is_eq_strict(dHr[QY[2]], DHr)) {
            var AHr = decrypt_obj.Kw(76, 800, 21, logical_neg(logical_neg({})));
            FHr = is_ueq_strict(Opposite(QY[2]), FHr['indexOf'](decrypt_obj.Yw(70, 847, 143)['concat'](zVr))) ? FHr['replace'](decrypt_obj.Yw.apply(null, [
                11,
                847,
                143
            ])['concat'](zVr), decrypt_obj.Yw(logical_neg(0), 847, 143)['concat'](zVr)['concat'](AHr)) : ''['concat'](FHr)['concat'](zVr, decrypt_obj.Yw.call(null, 92, 847, 143))['concat'](zVr)['concat'](AHr);
        }
        FHr = add(add(add(add(QY[9], zVr), 2), zVr), FHr = add(add(add(add(add(vHr, sHr), zVr), bitwise_eor(24, w2(7, [
            SignDataToInt,
            0,
            FHr
        ]))), zVr), FHr));
        var WHr = getDateNow();
        FHr = function lHr(hHr, NHr) {
            stack.push(728);
            var KHr;
            var MHr;
            var gHr;
            var JHr;
            var mHr = hHr['split'](',');
            for (JHr = 0; is_lt(JHr, mHr['length']); JHr++)
                KHr = mod(bitwise_and(right_shift(NHr, 8), QY[32]), mHr['length']), NHr *= QY[33], NHr &= QY[34], NHr += QY[35], MHr = mod(bitwise_and(right_shift(NHr &= QY[36], 8), QY[32]), mHr['length']), NHr *= QY[33], NHr &= QY[34], NHr += QY[35], NHr &= QY[36], gHr = mHr[KHr], mHr[KHr] = mHr[MHr], mHr[MHr] = gHr;
            var UHr;
            UHr = mHr['join'](',');
            stack.pop();
            return UHr;
        }(FHr, dHr[1]);
        WHr = sub(getDateNow(), WHr);
        var fHr = getDateNow();
        FHr = function PHr(nHr, qHr) {
            stack.push(266);
            if (logical_neg(Gbr))
                for (var rbr = 0; is_lt(rbr, 127); ++rbr)
                    is_lt(rbr, 32) || is_eq_strict(39, rbr) || is_eq_strict(34, rbr) || is_eq_strict(QY[37], rbr) ? pbr[rbr] = Opposite(1) : (pbr[rbr] = Gbr['length'], Gbr += g_win['String']['fromCharCode'](rbr));
            for (var Sbr = '', Bbr = 0; is_lt(Bbr, nHr['length']); Bbr++) {
                var Vbr = nHr['charAt'](Bbr);
                var Xbr = bitwise_and(right_shift(qHr, 8), 65535);
                qHr *= QY[33];
                qHr &= QY[34];
                qHr += QY[35];
                qHr &= QY[36];
                var Hbr = pbr[nHr['charCodeAt'](Bbr)];
                if (is_eq_nostrict('function', typeof Vbr['codePointAt'])) {
                    var bbr = Vbr['codePointAt'](0);
                    is_lge(bbr, 32) && is_lt(bbr, QY[38]) && (Hbr = pbr[bbr]);
                }
                is_lge(Hbr, QY[3]) && (Hbr += mod(Xbr, Gbr['length']), Hbr %= Gbr['length'], Vbr = Gbr[Hbr]);
                Sbr += Vbr;
            }
            var Lbr;
            Lbr = Sbr;
            stack.pop();
            return Lbr;
        }(FHr, dHr[0]);
        fHr = sub(getDateNow(), fHr);
        var Tbr = ''['concat'](sub(getDateNow(), FVr), ',')['concat'](Fbr, ',')['concat'](CHr, ',')['concat'](WHr, ',')['concat'](fHr, ',')['concat'](zbr);
        FHr = is_ueq_strict(VoidVar(0), LVr) && is_eq_strict(logical_neg(0), LVr) ? add(add(add(add(add(add(add('2;', dHr[0]), wbr), dHr[1]), wbr), Tbr), wbr), FHr) : add(add(add(add(add(add(add(add(add('2;', jbr['ajTypeBitmask']), wbr), dHr[0]), wbr), dHr[1]), wbr), Tbr), wbr), FHr);
    } catch (Obr) {
        stack = RHr.slice();
    }
    TVr('</bpd>');
    var kbr;
    kbr = sensor_arr;
    stack.pop();
    return kbr;
};

initSensorArgs();
var sensor_datas = getSensorArrByDtPXZSxIUm();